#include <iostream>
#include "HardwareSerial.h"

char buffer[10000];
int pos = 0;

/*
void task1(std::string msg)
{
    std::cout << "task1 says: " << msg;
}
*/

HardwareSerial::HardwareSerial() {
//    std::thread t1(task1, "Hello");
}


int HardwareSerial::available() {
    std::cin.clear();
    unsigned long i = std::cin.peek();
    return std::cin.good() && i != 0;
}

int HardwareSerial::peek() {
    return (int) std::cin.peek();
}

int HardwareSerial::read() {
    return (int) std::cin.get();
}

void HardwareSerial::begin(int t) {
}
